package org.shiki.hrm.feign;

import org.shiki.hrm.doc.CourseDoc;
import org.shiki.hrm.domain.Course;
import org.shiki.hrm.query.CourseDocQuery;
import org.shiki.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "hrm-es", fallbackFactory = CourseDocFallbackFatory.class)
@RequestMapping("/courseDoc")
public interface CourseDocFeignClient {

/*	@PostMapping("/onLineCourse")
	AjaxResult onLineCourse(@RequestBody List<CourseDoc> list);*/

	@PostMapping("/onLineCourse")
	AjaxResult onLineCourse(@RequestBody List<CourseDoc> list);

	@PostMapping("/offLineCourse")
	AjaxResult offLineCourse(@RequestBody List<CourseDoc> list);

	@PostMapping("/queryCourses")
	AjaxResult queryCourses(@RequestBody CourseDocQuery query);
}
